package commands.gameCommand
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class PieceData extends EventDispatcher
	{
		protected var _row:int;
		protected var _column:int;
		protected var _count:int;
		protected var _owner:GamePlayer;
		protected var _radius:Number;
		
		public function PieceData(target:IEventDispatcher=null)
		{
			_row = -1;
			_column = -1;
			_count = 0;
			
			_owner = new NullOwner();
		}

		public function get radius():Number
		{
			return _radius;
		}

		public function set radius(value:Number):void
		{
			_radius = value;
			dispatchEvent(new Event(Event.CHANGE));
		}

		public function get count():int
		{
			return _count;
		}

		public function set count(value:int):void
		{
			_count = value;
			dispatchEvent(new Event(Event.CHANGE));
		}

		public function get owner():GamePlayer
		{
			return _owner;
		}

		public function set owner(value:GamePlayer):void
		{
			_owner = value;
			dispatchEvent(new Event(Event.CHANGE));
		}

		public function get row():int
		{
			return _row;
		}

		public function set row(value:int):void
		{
			_row = value;
		}

		public function get column():int
		{
			return _column;
		}

		public function set column(value:int):void
		{
			_column = value;
		}


	}
}